package model

type Patient struct {
	BaseModel
	Name          string `json:"name" gorm:"type:varchar(100);index;not null;default:'';comment:姓名"`
	Age           int    `json:"age" gorm:"type:int(3);not null;default:0;comment:年龄"`
	PatientNumber string `json:"patient_number" gorm:"type:varchar(30);index;unique;not null;default:'';comment:病案号"`
	CardNumber    string `json:"card_number" gorm:"type:varchar(20);not null;default:'';comment:身份证号"`
	Gender        int    `json:"gender" gorm:"type:tinyint(1);not null;default:0;comment:性别 0-未知 1-男 2-女"`
	Position      string `json:"position" gorm:"type:varchar(100);not null;default:'';comment:位置"`
}
